package com.example.demo.service.serviceimpl;

import com.example.demo.mapper.UserMapper;
import com.example.demo.model.User;
import com.example.demo.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    UserMapper um;

    @Override
    public boolean insert(User user) {
        int insert = um.insert(user);
        if (insert>0){
            return true;
        }else {
            return false;
        }
    }
}
